package com.tsd.jxc.buy.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillDetail;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillDetailExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcBuyReturnBillDetailMapper
 *
 * @author Hillpool
 * @date 2022/07/29 15:01:23
 */
public interface JxcBuyReturnBillDetailMapper {

    JxcBuyReturnBillDetail selectByPrimaryKey(Long id);

    JxcBuyReturnBillDetailExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcBuyReturnBillDetail record);

    int insertSelective(JxcBuyReturnBillDetail record);

    int insertList(@Param("list") List<JxcBuyReturnBillDetailExt> list);

    int updateByPrimaryKey(JxcBuyReturnBillDetail record);

    int updateByPrimaryKeySelective(JxcBuyReturnBillDetail record);

    int updateList(@Param("list") List<JxcBuyReturnBillDetailExt> list);

    List<JxcBuyReturnBillDetailExt> selectByEntity(JxcBuyReturnBillDetailExt record);

    List<JxcBuyReturnBillDetailExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcBuyReturnBillDetailExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcBuyReturnBillDetailExt> selectByParams(@Param("params") Map<String, Object> params);

    int deleteLogicByIdList(BatchDeleteLogicVo logicVo);

    int deleteLogicByReturnList(BatchDeleteLogicVo logicVo);

    int restoreOutBill(@Param("out_bill_list") List<String> out_bill_list);

    List<JxcBuyReturnBillDetailExt> selectOverReturn(@Param("return_sid_list") List<String> return_sid_list);

    List<String> selectBuyDetailSidByReturnSidList(@Param("return_sid_list")List<String> return_sid_list);
}